import Vue from 'https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.esm.browser.js'
import RouterLink from './RouterLink.vue'
// import RouterView from '../RouterView'

const routes = {
    '/home' : {
        template: '<h2> home </h2>'
    },
    '/about' : {
        template: '<h2> about </h2>' 
    }
}


const app = new Vue({
    el: '#app',
    components: {
        'router-link': RouterLink,
        // 'router-view': RouterView
    },
    beforeCreate() {
        this.$routes = routes
    },
})